import ArkDialogOptionsDefault, {ArkDialogOptions} from "../../common/ark-dialog/ArkDialogOptions";
import ArkFormOptionsDefault, {ArkFormExpose, ArkFormOptions} from "../../common/ark-form/ArkFormOptions";

export interface ArkDialogFormOptions extends ArkDialogOptions {
  /** 表单选项 */
  form?: ArkFormOptions;

  /**
   * 区别于 ArkDialogOptions 和 ArkFormOptions 的属性逻辑
   *  - footer
   *   - confirm：beforeClick为null或undefined时，默认为beforeClick添加表单校验逻辑
   *   - cancel：afterClick为null或undefined时，默认为afterClick添加关闭对话框操作
   */
}

/** options默认值 */
const arkDialogFormOptionsDefault: Partial<ArkDialogFormOptions> = {
  ...ArkDialogOptionsDefault,
  form: {
    ...ArkFormOptionsDefault,
    attributes: {
      "label-width": "auto",
    },
  },
  footer: {
    show: true,
  },
};
export default arkDialogFormOptionsDefault;

/** 组件接口 */
export interface ArkDialogFormExpose extends ArkFormExpose {
}